<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<!-- 将ajax放到js文件中是，要加上这个标签 -->
	<!-- 查看页面源码会得到很多地址，找合适的用到js中连接ajax中的url: -->
	<script type='text/javascript'>
HOST = 'http://127.0.01';
ROOT = 'http://127.0.01/jmshop';
WEB = 'http://127.0.01/jmshop/index.php';
URL = 'http://127.0.01/jmshop/index.php/Index/JieSuan/index';
APP = 'http://127.0.01/jmshop/Application';
COMMON = 'http://127.0.01/jmshop/Application/Common';
HDPHP = 'http://127.0.01/jmshop/hdphp';
HDPHP_DATA = 'http://127.0.01/jmshop/hdphp/Data';
HDPHP_EXTEND = 'http://127.0.01/jmshop/hdphp/Extend';
MODULE = 'http://127.0.01/jmshop/index.php/Index';
CONTROLLER = 'http://127.0.01/jmshop/index.php/Index/JieSuan';
ACTION = 'http://127.0.01/jmshop/index.php/Index/JieSuan/index';
STATIC = 'http://127.0.01/jmshop/Static';
HDPHP_TPL = 'http://127.0.01/jmshop/hdphp/Lib/Tpl';
VIEW = 'http://127.0.01/jmshop/Application/Index/View';
PUBLIC = 'http://127.0.01/jmshop/Application/Index/View/Public';
CONTROLLER_VIEW = 'http://127.0.01/jmshop/Application/Index/View/JieSuan';
HISTORY = 'http://127.0.01/jmshop/index.php/Index/Content/index/gid/124';
TEMPLATE = 'http://127.0.01/jmshop/template/default';
</script>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>jiesuan</title>
	<script type="text/javascript" src="http://127.0.01/jmshop/template/default/js/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" href="http://127.0.01/jmshop/template/default/css/jiesuan.css" />
	<script type="text/javascript" src="http://127.0.01/jmshop/template/default/js/jiesuan.js"></script>
	
</head>
<body>
	<!-- 头部开始 -->
	<div id="head">
			<div class="middle">
				<a class="left" href="<?php echo U('Index/Index/index');?>"></a>
				<div class="right">
				    <?php if(isset($_SESSION['uid']) && isset($_SESSION['username'])){ ?>
					<div class="login">
						欢迎您:<span class="welcome"><?php echo $hd['session']['username'];?></span><a href="<?php echo U('Index/JieSuanXinXi/tuichu');?>" class="tuichu">[退出]</a>
					</div>
				<?php }else{ ?>
					<div class="huanying">
						<span class="huanying1">聚美欢迎您,</span>
						<a href="<?php echo U('Index/Login/index');?>" class="zhuce">[登录]</a>
						<a href="<?php echo U('Index/Reg/index');?>" class="denglu">[快速注册]</a>
					</div>
				<?php } ?>
					<div class="jindu"></div>
				</div>
			</div>
			
		</div>

	<!-- 头部结束-->
	<form action="<?php echo U('Index/JieSuanXinXi/index');?>" method="post" id="commit">
	<!-- 中部开始 -->
	<dl id="show">
		<dt class="title">
			<div class="title_left">
				<input type="checkbox" name="total" class="fahuo"/>
				<span class="fa">聚美优品发货</span>
				
			</div>
			<ul class="title_right">
				<li>聚美价（元）</li>
				<li>数量</li>
				<li>小计（元）</li>
				<li>操作</li>
			</ul>
		</dt>
		<?php foreach ($cartData as $k=>$v){?>
		<dd>
			<div class="yimai_left">
				<input type="checkbox" name="sid" class="xuanze" value="<?php echo $k;?>"/>
				<img src="http://127.0.01/jmshop/<?php echo $v['options']['pic'];?>" alt="" class="chanpin_tu" />
				<div class="xiangqing">
					<a href="" class="pinming"><?php echo $v['name'];?></a>
					    <?php if(isset($v['options']['size']) && isset($v['options']['color'])){ ?>
						<div class="btn">
							<a href="" class="zeng"><?php echo $v['options']['size'];?></a>
							<a href="" class="jian"><?php echo $v['options']['color'];?></a>
						</div>
					<?php }else{ ?>
						<span class="noGuiGe">没有具体规格</span>
					<?php } ?>
				</div>
				
			</div>
			<ul class="jiage">
				<li class="jiage_xian">
					<span class="xianjia"><?php echo $v['price'];?></span>
					<del class="yuanjia"><?php echo $v['options']['mark'];?></del>
				</li>
				<li class="zeng_jian">
					<div class="box">
						<a href="javascript:;" class="jian">-</a>
						<input type="text" class="num" name="" value="<?php echo $v['num'];?>" />
						<a href="javascript:;" class="jia">+</a>
						
					</div>
				</li>
				<li class="xiaoji">
					<span class="xianjia xj"><?php echo $v['total'];?></span><br/>
				</li>
				<li class="shanchu">
					<input type="hidden" class="inventery" value="<?php echo $v['inventery'];?>"/>
					<input type="hidden" name="delNum" id="" value="<?php echo $k;?>"/>
					<a href="javascript:;" class="del"></a>
				</li>
			</ul>
			
		</dd>
		<?php }?>
	
		<div class="quanjia">
			<span class="sp">商品金额:</span><span class="red">￥</span><span class="zongjia"><?php echo $cartTotalPrice;?></span>
		</div>
		

	</dl>
	<div id="bottom">
		<div class="left">
			<input type="checkbox" class="quanxuan"/>
			<span>全选</span>
			<a href="">继续购物</a><span class="xian">|</span>
			<a href="<?php echo U('Index/JieSuan/del');?>">清空选中商品</a>
		</div>
		<div class="right">
			<div class="shuliang">
				共<span class="num"><?php echo $cartTotalNum;?></span>件商品
			</div>
			<div class="total">商品应付总额<span class="yuan">￥</span><span class="zong_jia"><?php echo $cartTotalPrice;?></span></div>
			<a href="javascript:;" class="jiesuan">去结算</a>
		</div>
		
	</div>
	</form>
	<!-- 中部结束 -->
	<!-- 底部开始 -->
		<!-- 版权区域上部 -->
		<div id="floor3">
			<ul class="up">
				<li class="icon_middle">
					<span class="diyi"></span>
					<a href="">四大美妆电商</a>
					<p class="des">四千万用户信赖</p>
				</li>
				<li class="icon_middle">
					<span class="shangshi"></span>
					<a href="">成功在美上市</a>
					<p class="des">股票代码NYSE:JMEI</p>
				</li>
				<li class="icon_middle">
					<span class="fangwei"></span>
					<a href="">品牌防伪码</a>
					<p class="des">支持品牌官网验真</p>
				</li>
				<li class="icon_middle">
					<span class="tui_huo"></span>
					<a href="">30天无理由退货</a>
					<p class="des">只要不满意无理由退货</p>
				</li>
				<li class="icon_middle">
					<span class="kou_bei"></span>
					<a href="">百万用户口碑</a>
					<p class="des">帮你只选对的,不选贵的</p>
				</li>
				<li class="icon_middle">
					<span class="fa_huo"></span>
					<a href="">订单闪电发货</a>
					<p class="des">1.5小时订单急速出库</p>
				</li>
				<li class="icon_middle">
					<span class="re_jian"></span>
					<a href="">大牌明星热荐</a>
					<p class="des">打造精致明星脸</p>
				</li>


			</ul>
			<div class="middle">
				<div class="left">
					<dl class="shou_ce">
						<dt>服务保障</dt>
						<dd><a href="">品牌真品防伪码</a></dd>
						<dd><a href="">100%正品保证</a></dd>
						<dd><a href="">30天无条件退货</a></dd>
						<dd><a href="">7×24小时客服服务</a></dd>
						<dd><a href="">总裁邮箱ceo@jumei.com</a></dd>
					</dl>
					<dl class="shou_ce">
						<dt>使用帮助</dt>
						<dd><a href="">新手指南</a></dd>
						<dd><a href="">常见问题</a></dd>
						<dd><a href="">帮助中心</a></dd>
						<dd><a href="">用户协议</a></dd>
						<dd><a href="">企业用户团购</a></dd>
					</dl>
					<dl class="shou_ce">
						<dt>支付方式</dt>
						<dd><a href="">货到付款</a></dd>
						<dd><a href="">在线支付</a></dd>
						<dd><a href="">余额支付</a></dd>
						<dd><a href="">现金券支付</a></dd>
						
					</dl>
					<dl class="shou_ce">
						<dt>配送方式</dt>
						<dd><a href="">包邮政策</a></dd>
						<dd><a href="">配送说明</a></dd>
						<dd><a href="">运费说明</a></dd>
						<dd><a href="">验货签收</a></dd>
						
					</dl>
					<dl class="shou_ce">
						<dt>售后服务</dt>
						<dd><a href="">正品承诺</a></dd>
						<dd><a href="">售后咨询</a></dd>
						<dd><a href="">退货政策</a></dd>
						<dd><a href="">退货办理</a></dd>
						
					</dl>
				</div>
				<ul class="right">
					<li class="ma">
					    <span>手机聚美</span>
						<img src="http://127.0.01/jmshop/template/default/image/shangpin/jumei_weixin_header1.png" alt="" />
						<a href="">下载移动客户端</a>
					</li>
					<li class="ma">
					    <span>聚美微信</span>
						<img src="http://127.0.01/jmshop/template/default/image/shangpin/sina_er.png" alt="" />
						<a href="">聚美官方微信</a>
					</li>		
				</ul>
				
			</div>
			<div class="below">
			</div>
		</div>
		<!-- 版权区域 -->
		<div id="ban_quan">
			<div class="head">
				<ul class="flink">
					<li><a href="">关于聚美优品</a></li>
					<li><a href="">INVESTOR</a></li>
					<li><a href="">RELATIONS</a></li>
					<li><a href="">商家入驻</a></li>
					<li><a href="">获取更新</a></li>
					<li><a href="">品牌合作专区</a></li>
					<li><a href="">网站联盟</a></li>
					<li><a href="">媒体报道</a></li>
					<li><a href="">商务合作</a></li>

				</ul>
			</div>
			<div class="foot">
				<div class="ban_quan_des">
					<span>COPYRIGHT © 2010-2015 北京创锐文化传媒有限公司 JUMEI.COM 保留一切权利。 客服热线：400-123-8888</span><br/>
	                <span>京公网安备 11010102001226 | 京ICP证10046944号 | 食品流通许可证 SP1101051110165515（1-1） | 营业执照</span>
				</div>
				<div class="ban_quan_icon">
					<span class="tuangou"></span>
					<span class="renzheng"></span>
					<span class="zhuanti"></span>
					<span class="zhifubao"></span>
					<span class="kexin"></span>
					
				</div>
			</div>
		</div>
</body>
</html>